"""
文件名: conftest.py
作用: 存放所有fixture方法
"""
import pytest
from Untils.OperationData import OperationData
from Interface.DHX_MemberInterface import MemberInterface
from Interface.DHX_MemberCouponController import MemberCouponController
from Interface.YXL_UmsMemberReceiveAddressController import UmsMemberReceiveAddressControllerr
from Interface.JL_HomeController import HomeController
from Interface.JL_MemberAttentionController import MemberAttentionController
from Interface.WYL_MemberCollectionController import MemberCollectionController
from Interface.WYL_MemberReadHistoryController import MemberReadHistoryController
from Interface.ZX_OmsCartItemController import OmsCartItemController


# ----------方法区-------------
@pytest.fixture()
def member():
	"""
	MemberInterface实例化对象返回
	:return:
	"""
	member = MemberInterface()
	yield member


@pytest.fixture()
def coupon():
	# MemberCouponController实例化对象返回
	coupon = MemberCouponController()
	yield coupon


@pytest.fixture()
def address():
	"""
	UmsMemberReceiveAddressControllerr实例化对象返回
	:return:
	"""
	address = UmsMemberReceiveAddressControllerr()
	yield address


@pytest.fixture()
def hc():
	"""
	MemberInterface实例化对象返回
	:return:
	"""
	hc = HomeController()
	yield hc


@pytest.fixture()
def mac():
	"""
	MemberInterface实例化对象返回
	:return:
	"""
	mac = MemberAttentionController()
	yield mac


@pytest.fixture()
def coll():
	coll = MemberCollectionController()
	yield coll


@pytest.fixture()
def cead():
	cead = MemberReadHistoryController()
	yield cead


@pytest.fixture()
def omscart():
	omscart = OmsCartItemController()
	yield omscart